package com.sh.data.engine.web.openapi.controller.isfd;


import com.sh.data.engine.application.model.dto.Isfd.IsfdStaticStrengthAnalysisMatDTO;
import com.sh.data.engine.application.model.dto.base.PagerResponse;
import com.sh.data.engine.application.model.request.Isfd.IsfdstaticStrengthAnalysisRequest;
import com.sh.data.engine.web.webapi.controller.base.response.RestResponseEntity;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*;
import com.sh.data.engine.application.service.Isfd.IsfdApplicationService;

@Validated
@RestController
@RequestMapping("/openapi/isfd/mat")
@Tag(name = "要素库模型", description = "要素库模型相关接口")
public class IsfdMatController {
    @Autowired
    private IsfdApplicationService isfdApplicationService;

    @GetMapping("/staticStrengthAnalysis/matList")
    @Operation(summary = "获取要素库金属材料", description = "该api用于获取要素库金属材料")
    public RestResponseEntity<PagerResponse<IsfdStaticStrengthAnalysisMatDTO>> listMat(IsfdstaticStrengthAnalysisRequest request) {
        PagerResponse<IsfdStaticStrengthAnalysisMatDTO> staticStrengthAnalysisMat = isfdApplicationService.getStaticStrengthAnalysis(request);
        return RestResponseEntity.success(staticStrengthAnalysisMat);
    }
}
